package com.pipe.protocol.events.table.reader;

import io.netty.buffer.ByteBuf;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author Kiven
 */
public class MysqlTypeLongReader implements ColumnReader<Long>{
    private Logger log = LoggerFactory.getLogger(MysqlTypeLongReader.class);

    @Override
    public Long read(ByteBuf byteBuf, int readLength) {
        log.debug("parse long!");
        return byteBuf.readUnsignedIntLE();
    }
}